package com.xxh.dataaccess.rpcservice;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.16.1)",
    comments = "Source: RecallService.proto")
public final class RpcRecServiceGrpc {

  private RpcRecServiceGrpc() {}

  public static final String SERVICE_NAME = "RecService.RpcRecService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<RecallService.RecRequest,
      RecallService.RecReply> getUpdateUserHistoryRecallMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "updateUserHistoryRecall",
      requestType = RecallService.RecRequest.class,
      responseType = RecallService.RecReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<RecallService.RecRequest,
      RecallService.RecReply> getUpdateUserHistoryRecallMethod() {
    io.grpc.MethodDescriptor<RecallService.RecRequest, RecallService.RecReply> getUpdateUserHistoryRecallMethod;
    if ((getUpdateUserHistoryRecallMethod = RpcRecServiceGrpc.getUpdateUserHistoryRecallMethod) == null) {
      synchronized (RpcRecServiceGrpc.class) {
        if ((getUpdateUserHistoryRecallMethod = RpcRecServiceGrpc.getUpdateUserHistoryRecallMethod) == null) {
          RpcRecServiceGrpc.getUpdateUserHistoryRecallMethod = getUpdateUserHistoryRecallMethod = 
              io.grpc.MethodDescriptor.<RecallService.RecRequest, RecallService.RecReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "RecService.RpcRecService", "updateUserHistoryRecall"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  RecallService.RecRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  RecallService.RecReply.getDefaultInstance()))
                  .setSchemaDescriptor(new RpcRecServiceMethodDescriptorSupplier("updateUserHistoryRecall"))
                  .build();
          }
        }
     }
     return getUpdateUserHistoryRecallMethod;
  }

  private static volatile io.grpc.MethodDescriptor<RecallService.RecRequest,
      RecallService.RecReply> getUpdateUserProfileRecallMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "updateUserProfileRecall",
      requestType = RecallService.RecRequest.class,
      responseType = RecallService.RecReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<RecallService.RecRequest,
      RecallService.RecReply> getUpdateUserProfileRecallMethod() {
    io.grpc.MethodDescriptor<RecallService.RecRequest, RecallService.RecReply> getUpdateUserProfileRecallMethod;
    if ((getUpdateUserProfileRecallMethod = RpcRecServiceGrpc.getUpdateUserProfileRecallMethod) == null) {
      synchronized (RpcRecServiceGrpc.class) {
        if ((getUpdateUserProfileRecallMethod = RpcRecServiceGrpc.getUpdateUserProfileRecallMethod) == null) {
          RpcRecServiceGrpc.getUpdateUserProfileRecallMethod = getUpdateUserProfileRecallMethod = 
              io.grpc.MethodDescriptor.<RecallService.RecRequest, RecallService.RecReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "RecService.RpcRecService", "updateUserProfileRecall"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  RecallService.RecRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  RecallService.RecReply.getDefaultInstance()))
                  .setSchemaDescriptor(new RpcRecServiceMethodDescriptorSupplier("updateUserProfileRecall"))
                  .build();
          }
        }
     }
     return getUpdateUserProfileRecallMethod;
  }

  private static volatile io.grpc.MethodDescriptor<RecallService.RecRequest,
      RecallService.RecReply> getGenUserProfileRecallByUidMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "genUserProfileRecallByUid",
      requestType = RecallService.RecRequest.class,
      responseType = RecallService.RecReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<RecallService.RecRequest,
      RecallService.RecReply> getGenUserProfileRecallByUidMethod() {
    io.grpc.MethodDescriptor<RecallService.RecRequest, RecallService.RecReply> getGenUserProfileRecallByUidMethod;
    if ((getGenUserProfileRecallByUidMethod = RpcRecServiceGrpc.getGenUserProfileRecallByUidMethod) == null) {
      synchronized (RpcRecServiceGrpc.class) {
        if ((getGenUserProfileRecallByUidMethod = RpcRecServiceGrpc.getGenUserProfileRecallByUidMethod) == null) {
          RpcRecServiceGrpc.getGenUserProfileRecallByUidMethod = getGenUserProfileRecallByUidMethod = 
              io.grpc.MethodDescriptor.<RecallService.RecRequest, RecallService.RecReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "RecService.RpcRecService", "genUserProfileRecallByUid"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  RecallService.RecRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  RecallService.RecReply.getDefaultInstance()))
                  .setSchemaDescriptor(new RpcRecServiceMethodDescriptorSupplier("genUserProfileRecallByUid"))
                  .build();
          }
        }
     }
     return getGenUserProfileRecallByUidMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static RpcRecServiceStub newStub(io.grpc.Channel channel) {
    return new RpcRecServiceStub(channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static RpcRecServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    return new RpcRecServiceBlockingStub(channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static RpcRecServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    return new RpcRecServiceFutureStub(channel);
  }

  /**
   */
  public static abstract class RpcRecServiceImplBase implements io.grpc.BindableService {

    /**
     * <pre>
     * rpc
     * </pre>
     */
    public void updateUserHistoryRecall(RecallService.RecRequest request,
                                        io.grpc.stub.StreamObserver<RecallService.RecReply> responseObserver) {
      asyncUnimplementedUnaryCall(getUpdateUserHistoryRecallMethod(), responseObserver);
    }

    /**
     */
    public void updateUserProfileRecall(RecallService.RecRequest request,
                                        io.grpc.stub.StreamObserver<RecallService.RecReply> responseObserver) {
      asyncUnimplementedUnaryCall(getUpdateUserProfileRecallMethod(), responseObserver);
    }

    /**
     */
    public void genUserProfileRecallByUid(RecallService.RecRequest request,
                                          io.grpc.stub.StreamObserver<RecallService.RecReply> responseObserver) {
      asyncUnimplementedUnaryCall(getGenUserProfileRecallByUidMethod(), responseObserver);
    }

    @Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getUpdateUserHistoryRecallMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                RecallService.RecRequest,
                RecallService.RecReply>(
                  this, METHODID_UPDATE_USER_HISTORY_RECALL)))
          .addMethod(
            getUpdateUserProfileRecallMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                RecallService.RecRequest,
                RecallService.RecReply>(
                  this, METHODID_UPDATE_USER_PROFILE_RECALL)))
          .addMethod(
            getGenUserProfileRecallByUidMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                RecallService.RecRequest,
                RecallService.RecReply>(
                  this, METHODID_GEN_USER_PROFILE_RECALL_BY_UID)))
          .build();
    }
  }

  /**
   */
  public static final class RpcRecServiceStub extends io.grpc.stub.AbstractStub<RpcRecServiceStub> {
    private RpcRecServiceStub(io.grpc.Channel channel) {
      super(channel);
    }

    private RpcRecServiceStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @Override
    protected RpcRecServiceStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new RpcRecServiceStub(channel, callOptions);
    }

    /**
     * <pre>
     * rpc
     * </pre>
     */
    public void updateUserHistoryRecall(RecallService.RecRequest request,
                                        io.grpc.stub.StreamObserver<RecallService.RecReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getUpdateUserHistoryRecallMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void updateUserProfileRecall(RecallService.RecRequest request,
                                        io.grpc.stub.StreamObserver<RecallService.RecReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getUpdateUserProfileRecallMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void genUserProfileRecallByUid(RecallService.RecRequest request,
                                          io.grpc.stub.StreamObserver<RecallService.RecReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getGenUserProfileRecallByUidMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class RpcRecServiceBlockingStub extends io.grpc.stub.AbstractStub<RpcRecServiceBlockingStub> {
    private RpcRecServiceBlockingStub(io.grpc.Channel channel) {
      super(channel);
    }

    private RpcRecServiceBlockingStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @Override
    protected RpcRecServiceBlockingStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new RpcRecServiceBlockingStub(channel, callOptions);
    }

    /**
     * <pre>
     * rpc
     * </pre>
     */
    public RecallService.RecReply updateUserHistoryRecall(RecallService.RecRequest request) {
      return blockingUnaryCall(
          getChannel(), getUpdateUserHistoryRecallMethod(), getCallOptions(), request);
    }

    /**
     */
    public RecallService.RecReply updateUserProfileRecall(RecallService.RecRequest request) {
      return blockingUnaryCall(
          getChannel(), getUpdateUserProfileRecallMethod(), getCallOptions(), request);
    }

    /**
     */
    public RecallService.RecReply genUserProfileRecallByUid(RecallService.RecRequest request) {
      return blockingUnaryCall(
          getChannel(), getGenUserProfileRecallByUidMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class RpcRecServiceFutureStub extends io.grpc.stub.AbstractStub<RpcRecServiceFutureStub> {
    private RpcRecServiceFutureStub(io.grpc.Channel channel) {
      super(channel);
    }

    private RpcRecServiceFutureStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @Override
    protected RpcRecServiceFutureStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new RpcRecServiceFutureStub(channel, callOptions);
    }

    /**
     * <pre>
     * rpc
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<RecallService.RecReply> updateUserHistoryRecall(
        RecallService.RecRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getUpdateUserHistoryRecallMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<RecallService.RecReply> updateUserProfileRecall(
        RecallService.RecRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getUpdateUserProfileRecallMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<RecallService.RecReply> genUserProfileRecallByUid(
        RecallService.RecRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getGenUserProfileRecallByUidMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_UPDATE_USER_HISTORY_RECALL = 0;
  private static final int METHODID_UPDATE_USER_PROFILE_RECALL = 1;
  private static final int METHODID_GEN_USER_PROFILE_RECALL_BY_UID = 2;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final RpcRecServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(RpcRecServiceImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @Override
    @SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_UPDATE_USER_HISTORY_RECALL:
          serviceImpl.updateUserHistoryRecall((RecallService.RecRequest) request,
              (io.grpc.stub.StreamObserver<RecallService.RecReply>) responseObserver);
          break;
        case METHODID_UPDATE_USER_PROFILE_RECALL:
          serviceImpl.updateUserProfileRecall((RecallService.RecRequest) request,
              (io.grpc.stub.StreamObserver<RecallService.RecReply>) responseObserver);
          break;
        case METHODID_GEN_USER_PROFILE_RECALL_BY_UID:
          serviceImpl.genUserProfileRecallByUid((RecallService.RecRequest) request,
              (io.grpc.stub.StreamObserver<RecallService.RecReply>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @Override
    @SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class RpcRecServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    RpcRecServiceBaseDescriptorSupplier() {}

    @Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return RecallService.getDescriptor();
    }

    @Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("RpcRecService");
    }
  }

  private static final class RpcRecServiceFileDescriptorSupplier
      extends RpcRecServiceBaseDescriptorSupplier {
    RpcRecServiceFileDescriptorSupplier() {}
  }

  private static final class RpcRecServiceMethodDescriptorSupplier
      extends RpcRecServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    RpcRecServiceMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (RpcRecServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new RpcRecServiceFileDescriptorSupplier())
              .addMethod(getUpdateUserHistoryRecallMethod())
              .addMethod(getUpdateUserProfileRecallMethod())
              .addMethod(getGenUserProfileRecallByUidMethod())
              .build();
        }
      }
    }
    return result;
  }
}
